import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';
var LeftTreeGridComponentViewmodel = /** @class */ (function (_super) {
    tslib_1.__extends(LeftTreeGridComponentViewmodel, _super);
    function LeftTreeGridComponentViewmodel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.bindingPath = '/';
        _this.dom = {};
        return _this;
    }
    LeftTreeGridComponentViewmodel.prototype.LoadSubList1 = function (commandParam) { return; };
    LeftTreeGridComponentViewmodel.prototype.LoadNavTree1 = function (commandParam) { return; };
    LeftTreeGridComponentViewmodel.prototype.lefttreegridcomponentviewmodelloadFullTree1 = function (commandParam) { return; };
    LeftTreeGridComponentViewmodel.prototype.lefttreegridcomponentviewmodelLoadFullTreeChildren1 = function (commandParam) { return; };
    tslib_1.__decorate([
        NgCommand({
            name: 'LoadSubList1',
            params: {
                fid: '{DATA~/#{left-tree-grid-component}/id}',
                frameId: 'right-data-grid-component'
            },
            paramDescriptions: {
                fid: { type: 'string' },
                frameId: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], LeftTreeGridComponentViewmodel.prototype, "LoadSubList1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'LoadNavTree1',
            params: {
                filter: '',
                sort: ''
            },
            paramDescriptions: {
                filter: { type: 'string' },
                sort: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], LeftTreeGridComponentViewmodel.prototype, "LoadNavTree1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'lefttreegridcomponentviewmodelloadFullTree1',
            params: {
                virtualPropertyName: 'kfzzfield',
                fullTreeType: '0',
                loadType: '1',
                currentId: '',
                filters: '[{"filterField":"sszz","value":"kfzz","lbracket":"","rbracket":"","relation":"2","compare":"6","expresstype":0},{"filterField":"sszz","value":"kfzz","lbracket":"","rbracket":"","relation":"2","compare":"7","expresstype":0},{"filterField":"sszz","value":"kfzz","lbracket":"","rbracket":"","relation":0,"compare":"8","expresstype":0}]',
                frozenCurrentRow: 'true'
            },
            paramDescriptions: {
                virtualPropertyName: { type: 'string' },
                fullTreeType: { type: 'string' },
                loadType: { type: 'string' },
                currentId: { type: 'string' },
                filters: { type: 'string' },
                frozenCurrentRow: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], LeftTreeGridComponentViewmodel.prototype, "lefttreegridcomponentviewmodelloadFullTree1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'lefttreegridcomponentviewmodelLoadFullTreeChildren1',
            params: {
                commandName: 'lefttreegridcomponentviewmodelloadFullTree1',
                frameId: 'left-tree-grid-component'
            },
            paramDescriptions: {
                commandName: { type: 'string' },
                frameId: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], LeftTreeGridComponentViewmodel.prototype, "lefttreegridcomponentviewmodelLoadFullTreeChildren1", null);
    LeftTreeGridComponentViewmodel = tslib_1.__decorate([
        Injectable()
    ], LeftTreeGridComponentViewmodel);
    return LeftTreeGridComponentViewmodel;
}(ViewModel));
export { LeftTreeGridComponentViewmodel };
